package com.zc58s.controller;

import com.zc58s.feignapi.FeignOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.client.RestTemplate;

import java.util.Map;

/**
 * @author : fujc-dev@qq.com
 * @created : 2022/10/12 14:20
 */
@ResponseBody
@Controller
@RequestMapping("/user")
public class UserController {


    @Autowired
    private FeignOrderService orderService;

    @GetMapping("/queryUserInfoById")
    public Map<String, Object> queryUserInfoById() {
        return orderService.getDefaultUserInfo();
    }
}
